<template>
  <div class="common-search-module">
    <u-search
      shape="round"
      v-model="search"
      clearabled
      @search="onSearch"
      @custom="onSearch"
    ></u-search>
  </div>
</template>

<script setup>
import {ref} from 'vue';

const search = ref('');

// 搜索
const emit = defineEmits(['search']);
const onSearch = () => {
  emit('search', search.value);
};
</script>

<style lang="less" scoped>
.common-search-module {
  padding: 0 24px;
}
</style>
